<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<%@ include file="/WEB-INF/jsp/front/task/inc/taglibs.jsp"%>
<%@ include file="/WEB-INF/jsp/front/task/inc/meta_form.jsp"%>
<link href="${approot}/static/style/task/css/table_page_form.css" type="text/css" rel="stylesheet">
<link href="${approot}/static/style/task/css/global.css" type="text/css" rel="stylesheet">
<script type="text/javascript">
$(function() {
	 $('#tabs').tabs({'selected':${tabID}});
	 if(4!='${tabID}')
	 {
		 var url="${approot}${rooturi}/list/${tabID}/menu/0/0";
		 load_tabs_html(url,${tabID});
	 }
});

function tabClick(tabID)
{
	if(tabID==4)
	{
        return;
	}
	var url="${approot}${rooturi}/list/"+tabID+"/menu/0/0";
	load_tabs_html(url,tabID);
}
</script>
<script type="text/javascript">
            /* <![CDATA[ */
            jQuery(function(){
                jQuery("#reserveField1").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "请填写接收人"
                });   
                jQuery("#title").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "标题不能为空"
                });   
                jQuery("#content").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "内容不能为空"
                });   
                jQuery('#item').validated(function(){
					//alert("通过验证");
                    var url="${approot}${rooturi}/add";
                    var back="${approot}${rooturi}/list/2/menu/0/0";
                    ajax_submit("yes","no","发送消息",url,back);
				});
            });
            /* ]]> */
        </script>
    </head>
<body>

<!-- topbar start -->
 <c:import url="/task/header" context="${approot}"></c:import>
<!-- header end -->

<div class="clear"></div>

<div id="tbody">
 <c:import url="/task/ssl/user/info" context="${approot}"></c:import>
 <c:import url="/task/ssl/user/menu" context="${approot}"></c:import>

<div class="mainContent_wide">
<div class="panel mb8">
<h3><strong>短消息管理</strong></h3>
<div class="content p10" style="text-align:left;">
<div id="tabs">
	<ul>
		<li><a href="#tabs-1" onclick="tabClick(1);">收信箱</a></li>
		<li><a href="#tabs-2" onclick="tabClick(2);">发信箱</a></li>
		<li><a href="#tabs-3" onclick="tabClick(3);">垃圾箱</a></li>
		<li><a href="#tabs-4" onclick="tabClick(4);">发信息</a></li>
	</ul>
	<div id="tabs-1">

    </div>		
	<div id="tabs-2">

    </div>		
	<div id="tabs-3">

    </div>		
	
	<div id="tabs-4">
<form action="" enctype="multipart/form-data" method="post" id="item" name="item">
<table cellpadding="0" cellspacing="1" class="add_table">
<tr>
<td>接收人：</td>
<td>
<input name="reserveField1" id="reserveField1" type="text" size="10"/>			
</td>
</tr>
<tr>
<td>标题：</td>
<td>
<input name="title" id="title" type="text" size="10"/>			
</td>
</tr>
<tr>
<td>内容：</td>
<td>
<textarea rows="4" cols="40" name="content" id="content"></textarea>		
</td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" name="dosubmit" class="submit" id="button" value="确认发送" />
<input type="reset" name="button2" class="reset" id="button2" value="重 置" />
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- copyright start -->
 <c:import url="/task/footer" context="${approot}"></c:import>
</body></html>